#ifndef WIDGETIMAGE_H
#define WIDGETIMAGE_H

#include <QWidget>

namespace Ui {
    class WidgetImage;
}

class WidgetImage : public QWidget
{
    public:
        explicit WidgetImage(QWidget *parent=0);
        ~WidgetImage();
        void loadImage(const QString& path);
        bool enregistrerImage(const QString & nomFichier);


    protected:
        void paintEvent(QPaintEvent*);

    private:
        QImage *img;
};

#endif // WIDGETIMAGE_H
